package dk.itu.mmad.travelapp3;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;

public class Receipt extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_receipt);
		String checkIn = getIntent().getStringExtra("ci");
		String checkOut = getIntent().getStringExtra("co");
		TextView rv = (TextView) findViewById(R.id.result);
		rv.setText("You have traveled from " + checkIn
				+ " to " + checkOut + 
				" and you haven't even noticed it!!!");
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_receipt, menu);
		return true;
	}

}
